package com.imodia.checkoo.bean;

public class BaseArticleBean {
	protected Integer id;
	protected Integer isHtml;
	protected String hrefUrl;
	protected String dynamicUrl;
	protected String htmlUrl;
	protected Integer pageId;
	
	public Integer getPageId() {
		return pageId;
	}
	public void setPageId(Integer pageId) {
		this.pageId = pageId;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getIsHtml() {
		return isHtml;
	}
	public void setIsHtml(Integer isHtml) {
		this.isHtml = isHtml;
	}
	public String getHrefUrl() {
		if(isHtml!=null && isHtml==1){
			this.hrefUrl = getHtmlUrl();
		}else{
			this.hrefUrl = getDynamicUrl();
		}
		return hrefUrl;
	}
	
	public String getDynamicUrl() {
		return dynamicUrl+"&newsId="+id;
	}
	public void setDynamicUrl(String dynamicUrl) {
		this.dynamicUrl = dynamicUrl;
	}
	public String getHtmlUrl() {
		return htmlUrl;
	}
	public void setHtmlUrl(String htmlUrl) {
		this.htmlUrl = htmlUrl;
	}

	
}
